<?php

$data = file_get_contents('https://www.qidian.com/all');

file_put_contents('./ddd.html',$data);

$preg = "/<li data-rid=\".+?\">.+?<a href=\"(.+?)\".+?>.+?<img src=\"(.+?)\">.+?<h4><a href=\"(.+?)\" target=.+?>(.+?)<\/a><\/h4>.+?<p class=\"intro\">(.+?)<\/p>.+?<\/li>/s";

$c = preg_match_all($preg,$data,$out);

var_dump($c);

var_dump($out);

exit;

